{% include 'check_logstate.html' %}
{% load static %}
<link rel="stylesheet" type="text/css" href="{% static 'css/movie.css' %}"/>
<div id="movieAddDiv">
    <form id="movieAddForm" enctype="multipart/form-data" method="post">
        {% csrf_token %}
        <div>
            <span class="label">影片名称:</span>
            <span class="inputControl">
				<input class="textbox" type="text" id="movie_title" name="movie.title" style="width:200px"/>
			</span>
        </div>
        <div>
            <span class="label">影片体裁:</span>
            <span class="inputControl">
                <select id="movie_genres" name="movie.genres" style="width:200px;height:25px;">
                    {% for moviegenre in movieGenres %}
                        <option value="{{ moviegenre.MovieGenreName }}">{{ moviegenre.MovieGenreName }}</option>
                    {% endfor %}
                </select>
            </span>
        </div>
        <div>
            <span class="label">电影简介:</span>
            <span class="inputControl">
				<input class="textbox" type="text" id="movie_movieDesc" name="movie.movieDesc" style="width:80px"/>
			</span>
        </div>
        <div>
            <span class="label">上映年份:</span>
            <span class="inputControl">
				<input class="textbox" type="text" id="movie_movieYear" name="movie.movieYear" style="width:80px"/>
			</span>
        </div>
        <div class="operation">
            <a id="movieAddButton" class="easyui-linkbutton">添加</a>
            <a id="movieClearButton" class="easyui-linkbutton">重填</a>
        </div>
    </form>
</div>
<script src="{% static 'js/Movie/movie_add.js' %}"></script>
